package com.jwiki.app.rpcui.extend;

import org.eclipse.jface.text.source.SourceViewer;
import org.eclipse.jface.text.source.VerticalRuler;
import org.eclipse.swt.widgets.Composite;

import com.jwiki.app.rpcui.editor.ColorManager;
import com.jwiki.app.rpcui.editor.XMLConfiguration;
import com.jwiki.app.rpcui.editor.XMLDocument;

public class XmlSourceViewer extends SourceViewer {

    public XmlSourceViewer(Composite parent, int styles) {
        super(parent, new VerticalRuler(0), styles);
        super.configure(new XMLConfiguration(new ColorManager()));
        super.setDocument(new XMLDocument());
    }

}
